Initialized PERSONAGEM *p = 0; in desenho.c
changed rand() % 500 to rand() % 2000 in ia.c